package personal.jinhui.paprika.providers;

import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
 
public class UserDataMeta {
    public static final String AUTHORIY = "personal.jinhui.paprika.providers.userdataprovider";
    public static final String DATABASE_NAME = "userdata.db";
    public static final int DATABASE_VERSION = 1;

    public static final class AccountsTable implements BaseColumns {
        public static final String TABLE_NAME = "accounts";
        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORIY + "/accounts");	
    	public static final String CONTENT_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + "/accounts";	
    	public static final String CONTENT_ITEM_TYPE = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/accounts";
    	public static final String _ID = "_id";
        public static final String JID = "JID";
        public static final String PASSWORD = "PASSWORD";
        public static final String FULLJID = "fulljid";
        public static final String AVATARID = "avatarid";
        public static final String DEFAULT_SORT_ORDER = "_id desc";
    }
    
    public static final class MessagesTable implements BaseColumns {
        public static final String TABLE_NAME = "messages";
        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORIY + "/messages");	
    	public static final String CONTENT_TYPE = ContentResolver.CURSOR_DIR_BASE_TYPE + "/messages";	
    	public static final String CONTENT_ITEM_TYPE = ContentResolver.CURSOR_ITEM_BASE_TYPE + "/messages";
    	public static final String _ID = "_id";
        public static final String ACCOUNT = "account";
        public static final String TIMESTAMP = "timestamp";
        public static final String _FROM = "_from";
        public static final String _TO = "_to";
        public static final String MSGBODY = "msgbody";
        public static final String ISERROR = "iserror";
        public static final String DEFAULT_SORT_ORDER = "_id desc";
    }
}